import {baseAjax} from './baseAjax'

// 搜索时获取部门/人员树 action 1为客户转让(区域名单跟进人筛选)  2为客户搜索
export function getDepartTree (action, successHandle, errorHandle) {
  baseAjax('/ent/customer/transfer/user/tree', {'actionId': action}, 'post', successHandle, errorHandle)
}

// 全量保存企业部门结构信息
export function saveDeptStructureTreeReq (dataForm, successHandle, failHandle) {
  baseAjax('/tenant/tenantDeptInfo/batch/tree', dataForm, 'PUT', successHandle, failHandle)
}
